package com.example.schoolexam2.service;

import com.example.schoolexam2.dto.StudentChooseDto;
import com.example.schoolexam2.entity.Exam;
import com.example.schoolexam2.vo.PageVo;
import com.example.schoolexam2.vo.TestVO;
import com.example.schoolexam2.vo.ExamCreateVo;
import com.example.schoolexam2.vo.ExamVo;

import java.util.List;

public interface ExamService {
    //创建考试
    void createExam(ExamCreateVo createVo);
    //根据班级信息查询当前班级的考试
    List<Exam> getOwnAllExam(String classInfo);
    //根据试卷id获得试卷并返回
    ExamVo getExam(String examId);
    //保存学生对当前试卷的选择
    void saveStudentChoose(StudentChooseDto chooseDto);
    //测试返回给前端的数据是否正确
    TestVO test();
    //通过学生id和考试id查询学生当前试卷的做题情况
    ExamVo getStudentChoose(String StudentId, String examId);
    //学生查询历史考试成绩
    List<ExamVo> getHistoryExam(String studentId);
    //教师查询试卷
    PageVo teacherGetExam(String departmentId, String isPublic, String teacherId, String examName, int currentpage, int size);
}
